add_subdirectory( tests )

########### next target ###############

set(kdevcpprpp_LIB_SRCS
    pp-stream.cpp
    pp-macro-expander.cpp
    pp-scanner.cpp
    pp-macro.cpp
    pp-engine.cpp
    pp-internal.cpp
    pp-environment.cpp
    pp-location.cpp
    preprocessor.cpp
    chartools.cpp
    macrorepository.cpp
)

# Note: This library doesn't follow API/ABI/BC rules and shouldn't have a SOVERSION
#       Its only purpose is to support the plugin without needing to add all source files
#       to the plugin target
add_library(kdevcpprpp SHARED ${kdevcpprpp_LIB_SRCS})
target_link_libraries(kdevcpprpp LINK_PRIVATE
  
  KDev::Language
  KF5::TextEditor
)
generate_export_header(kdevcpprpp EXPORT_FILE_NAME cpprppexport.h)
install(TARGETS kdevcpprpp ${INSTALL_TARGETS_DEFAULT_ARGS} )
